cmake_minimum_required(VERSION 3.10)
project(TestSameSymbol C CXX)

add_library(a_dynamic SHARED a.c)
add_library(a_static STATIC a.c)

add_executable(main_static main.c)
target_link_libraries(main_static a_static)

add_executable(main_dynamic main.c)
target_link_libraries(main_dynamic a_dynamic)
